// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.unit.math;

import com.dustedpixels.jasmin.unit.Unit;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class ADD32 implements Unit {

  // (input) input 1, for the left operand
  public int IN_LEFT;
  
  // (input) input 2, for the right operand
  public int IN_RIGHT;
  
  // (input) carry bit
  public int IN_CARRY;
  
  // (output) output
  public int OUT;

  public void updateEndPoints() {
    OUT = IN_LEFT + IN_RIGHT + (IN_CARRY & 0x01);
  }
}
